extends Node2D

func _ready() -> void:
	var regex = RegEx.new()
	#regex.compile("(\\d{2}:\\d{2}) - (.+?) \\| (.+)")
	#var results := regex.search_all('''
		#10:20 - 吃饭 | 澡堂
	#''')
	regex.compile("\\[(\\d{2}:\\d{2}~\\d{2}:\\d{2})\\] - \\[(.+?)\\] - \\[(.+)\\]")
	var results := regex.search_all('''
	[11:20~12:10] - [吃饭] - [新教学楼]
	''')
	for res in results:
		var time := res.get_string(1)
		var thing := res.get_string(2)
		var place := res.get_string(3)
		print(time, "然后", thing, "之后", place)
